<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>v-model 指令</title>
</head>
<body>
<div id="app">
    <label for="name">账户</label><input type="text" name="name" id="name" placeholder="请输入账号" v-model="name">
    <br>
    <label for="content">{{ name }}</label>
</div>

<script type="module">
    import {createApp, ref} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                let name = ref("abc")
                return {
                    name,
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>